﻿package com.wandian.model.socket.net
{
	/**   
	* @author long
	* @QQ 108232706
	* @version 1.0   
	*/   
	public class Command extends Object
	{
		//=====1~10000基础操作

		//====1000~2000用户操作
		//登录
		public static const CMD_LOGIN:uint=1000;
		public static const CMD_REQUESTFRIENDLIST:uint=1001;

		//======2000~3000房间操作
		public static const CMD_RoomList:uint=2000;
		/**
		 * 大厅看房间玩家信息
		 * @default
		 */
		public static const CMD_RoomUserList:uint=2001;
		public static const CMD_FriendList:uint=2002;

		//=======4000~5000游戏内操作
		public static const CMD_LobbyCmd:uint=3998;
		public static const CMD_GameRoomCmd:uint=3999;
		public static const CMD_REGISTER:uint=3997;
		public static const EnterRoomCmd:uint=4000;
		/**
		 * 刚进一个房间，向服务器请求房间当前状态[玩家，底牌，倒计时]
		 * @default
		 */
		public static const CMD_ROOMINFO:uint=4001;
		public static const CMD_SITDOWN:uint=4002;
		public static const CMD_IN_GAME_ROOM:uint=4003;
		public static const CMD_OUT_GAME_ROOM:uint=4004;
		public static const CMD_STAND_UP:uint=4005;
		public static const CMD_START_GAME:uint=4006;
		public static const CMD_GameMessageList:uint=4007;
		/**
		 * 设置房间信息
		 * @default
		 */
		public static const CMD_SETROOMINFO:uint=4008;
		/**
		 *房间全部玩家，在第一次进去才发送
		 * @default
		 */
		public static const CMD_PLAYERS:uint=4009;
		/**
		 * 玩家个人概况响应
		 * @default
		 */
		public static const CMD_REQUESTINFOMATION:uint=4010;

		/**
		 *
		 * @default
		 */
		public static const CMD_ROOMINFOUPDATE:uint=4011;
		public static const CMD_ROOMPLAYERNUMCHANGE:uint=4012;

		/**
		 * 下注,通知下一次操作人,服务器主动推送
		 * @default
		 */
		public static const CMD_OPERATION_NEXT:uint=4013;


		/**
		 * 操作请求
		 * @default
		 */
		public static const CMD_OPERATION_REQUEST:uint=4014;
		/**
		 * 操作成功
		 * @default
		 */
		public static const CMD_OPERATION_SUCC:uint=4015;


		public static const CMD_CUR_POT:uint=4016;
		/**
		 * 胜家产生
		 * <br/>ChipMediator将边池的金钱给赢家 data.potId, data.arrWinPlayer[{seatId,potMoney,card1,card5}]
		 * <br/>DealCardMediator 
		 * @default
		 */
		public static const CMD_POTS:uint=4017;
		public static const CMD_SNAPCARDS_FLOP:uint=4018;
		public static const CMD_SNAPCARDS_TURN:uint=4019;
		public static const CMD_SNAPCARDS_RIVER:uint=4020;
		/**
		 * 显示底牌
		 * <br/> DealCardMediator根据服务端返回的玩家数组,arrLostPlayer,arrWinPlayer,
		 * 采用定时器4次*0.5秒 播放 显示失败玩家的牌，隐藏牌，显示赢家,截图
		 * <br/>OperateMediator 隐藏四操作按钮
		 * <br/>PlayerMediator 玩家总赢数++,lastAction=cardType+10,通知更新显示状态
		 * @default
		 */
		public static const CMD_SHOW:uint=4021;
		public static const CMD_FACE:uint=4022;
		/**
		 * 游戏结束
		 * @default
		 */
		public static const CMD_GAME_OVER:uint=5000;
		//聊天室[8000-9000]
		public static const CMD_CHATROOMMEDIATOR_SENDMESSAGE:uint=8000;
		public static const CMD_CHAT:uint=8000;
		//other
		public static const CMD_HB:uint=10006;

		public static const CMD_REGISTER_MATCH:uint=0;
		public static const CMD_EXIT_MATCH_ME:uint=0;


		public static const CMD_AGAIN_BUYIN:uint=1027;


		public static const CMD_ERR:uint=0;

		public static const CMD_ONLINE_TIME:uint=1036;
		public static const CMD_GIVE_CHIP:uint=1030;
		public static const CMD_GIVE_GIFT:uint=3001;
		public static const CMD_NOTICE:uint=2002;
		public static const CMD_USE_PROP:uint=3006;
		public static const CMD_CHANGE_SEATICO:uint=3007;
		public static const CMD_CHANGE_HEADIMAGE:uint=3008;
		public static const CMD_UPDATE_CORNUCOPIA:uint=5001;
		public static const CMD_REWARD_CORNUCOPIA:uint=5002;
		public static const CMD_TODAYCORNUCOPIALIST:uint=5003;
		public static const CMD_MYCORNUCOPIALIST:uint=5004;
		public static const CMD_HONOR_TIP:uint=3008;
		public static const CMD_UPDATE_RANK:uint=3009;
		public static const CMD_RENEW_GIFT:uint=3010;
		public static const CMD_REMOVE_GIFT:uint=3015;
		public static const CMD_BANK_DEPOSIT:uint=3011;
		public static const CMD_BANK_WITHDRAW:uint=3012;
		public static const CMD_BANK_TRANSFER:uint=3013;
		public static const CMD_BANK_MODIFY:uint=3024;
		public static const CMD_BANK_TRANSFER_NOTICE:uint=3014;
		public static const CMD_SYSTEM_GIVE_MONEY:uint=1031;
		public static const CMD_FRIEND_TO_REQUEST:uint=1033;
		/**
		 * 向服务器请求userid的好友的roomid
		 * @default
		 */
		public static const CMD_TRACK_ROOM:uint=3016;
		public static const CMD_ONLINE_MORE_FRIEND_LIST:uint=3017;
		/**
		 * 好友上线
		 * @default
		 */
		public static const CMD_ONLIN_FRIEND:uint=3018;
		/**
		 * 好友离线
		 * @default
		 */
		public static const CMD_OFFLINE_FRIEND:uint=3019;
		public static const CMD_MY_CARD_AGAIN:uint=1035;
		public static const CMD_FRIEND_RETURN:uint=1034;
		/**
		 * 掉线以后重新进房间,room
		 * @default
		 */
		public static const CMD_CLOSE_AGIAN_GAME_ROOM:uint=1999;
		public static const CMD_GAME_ROOM_SOCKET_CLOSE:uint=10003;
		/**
		 * 初始化设置，如声音
		 * @default
		 */
		public static const CMD_INIT_SET:uint=3023;
		/**
		 * 为了更好的游戏体验，服务器版本已进行升级，请刷新重进
		 * @default
		 */
		public static const CMD_UPDATE_SERVER_TIP:uint=1998;
		/**
		 * 您的帐号存在异常，被系统锁定n小时
		 * @default
		 */
		public static const CMD_CLOSE_GAME_TIME:uint=2003;
		/**
		 * 快速加入游戏
		 * @default
		 */
		public static const CMD_FAST_ENTER_ROOM:uint=2004;


		public function Command()
		{
			return;
		}

	}
}
